/*
 * UTIL.h
 *
 *  Created on: Oct 26, 2012
 *      Author: Bhupendra Aole
 */

#ifndef UTIL_H_
#define UTIL_H_

#include <string>
#include "tinyxml/tinyxml.h"

using namespace std;

class UTIL {
public:

	static int isNode( const char* name, TiXmlNode* pParent );

	static int getAttribute( TiXmlElement* pElement, const char* attrib, int *value );

	static int getAttribute( TiXmlElement* pElement, const char* attrib, string *value );

};

#endif /* UTIL_H_ */
